//
//  BZ_GHS_DrawDetailViewController.m
//  penzer
//
//  Created by caiyc on 2018/11/20.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "BZ_GHS_DrawDetailViewController.h"
#import "BZ_GHS_ComenDetailCell.h"

@interface BZ_GHS_DrawDetailViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UITableView *tableView;

@end

@implementation BZ_GHS_DrawDetailViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    if(self.type==1){
        self.navigationItem.title = @"提现明细";
    }else{
        self.navigationItem.title = @"交易明细";
    }
    [self setupTableView];
}



-(void)setupTableView
{
    [self.tableView registerNib:[UINib nibWithNibName:NSStringFromClass([BZ_GHS_ComenDetailCell class]) bundle:nil]  forCellReuseIdentifier:NSStringFromClass([BZ_GHS_ComenDetailCell class])];
    
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    self.tableView.estimatedRowHeight = 150;
    self.tableView.rowHeight = UITableViewAutomaticDimension;
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
   // self.tableView.tableFooterView = [[UIView alloc]initWithFrame:CGRectZero];
}


-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 1;
}


-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    BZ_GHS_ComenDetailCell *cell =[tableView dequeueReusableCellWithIdentifier:NSStringFromClass([BZ_GHS_ComenDetailCell class])];
    return cell;
}


- (IBAction)back:(UIButton *)sender
{
    [self.navigationController popViewControllerAnimated:NO];
}

@end
